package com.ruoyi.teaching.service;

import java.util.List;
import com.ruoyi.teaching.domain.HighInterview;
import com.ruoyi.teaching.domain.vo.InterviewMaseryList;
import com.ruoyi.teaching.domain.vo.RelatedInterviewVo;
import com.ruoyi.teaching.domain.vo.SelectInterviewMasery;

/**
 * 高频面试题Service接口
 *
 * @author sunshine
 * @date 2024-01-25
 */
public interface IHighInterviewService
{
    /**
     * 查询高频面试题
     *
     * @param id 高频面试题主键
     * @return 高频面试题
     */
    public HighInterview selectHighInterviewById(Long id);

    /**
     * 查询高频面试题列表
     *
     * @param highInterview 高频面试题
     * @return 高频面试题集合
     */
    public List<HighInterview> selectHighInterviewList(HighInterview highInterview);

    /**
     * 新增高频面试题
     *
     * @param highInterview 高频面试题
     * @return 结果
     */
    public int insertHighInterview(HighInterview highInterview);

    /**
     * 修改高频面试题
     *
     * @param highInterview 高频面试题
     * @return 结果
     */
    public int updateHighInterview(HighInterview highInterview);

    /**
     * 批量删除高频面试题
     *
     * @param ids 需要删除的高频面试题主键集合
     * @return 结果
     */
    public int deleteHighInterviewByIds(Long[] ids);

    /**
     * 删除高频面试题信息
     *
     * @param id 高频面试题主键
     * @return 结果
     */
    public int deleteHighInterviewById(Long id);

    List<InterviewMaseryList> listInterviewMastery(SelectInterviewMasery selectInterviewMasery);

    /**
     * 查询相关面试
     *
     * @param cdId          cd id
     * @param courseContent 课程内容
     * @return {@link RelatedInterviewVo}
     */
    RelatedInterviewVo queryRelatedInterview(Long cdId, String courseContent);

    void exportEs();
}
